package main

import (
	"flag"

	_ "github.com/go-sql-driver/mysql"
)

var (
	Thread = flag.Int("thread", 100, "threads")
	//Times       = flag.Duration("time", 1000000000, "time.Duration, default 1s,input example: 10ns  10ms 10s ...")
	Times = flag.Duration("time", 1000000000, "time.Duration, default 1s,input example: 10ns  10ms 10s ...")

	Module      = flag.String("module", "hotaccount", "hotaccount, hotwritab,hotreadtab,asyncpay")
	User        = flag.String("u", "t1", "mysql user name")
	Password    = flag.String("p", "t1", "mysql user password")
	Host        = flag.String("h", "192.168.66.129", "mysql host")
	Port        = flag.String("P", "3306", "mysql Port")
	Database    = flag.String("d", "t1", "mysql Database")
	TestType    = flag.String("type", "go", "选择，go,shell。如果填了shell，可以调用外部shell脚")
	Shellscript = flag.String("script", "/gowin/gowin/src/perfectdb/a.sh", "shell scripts，需要将type设为shell后才能生效")
)
var (
	Count int64
)
